//
//  MVCell.m
//  Temp
//
//  Created by dllo on 15/4/21.
//  Copyright (c) 2015年 不二晶. All rights reserved.
//

#import "MVCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation MVCell
- (void)dealloc
{
    [_MVNameLabel release];
    [_singerLabel release];
    [_picImageView release];
    [_myView release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myView = [[UIView alloc] init];
        [self.contentView addSubview:self.myView];
        self.myView.backgroundColor = [UIColor colorWithRed:233 / 255.0 green:250 / 255.0 blue:240 / 255.0 alpha:1];
        [self.myView release];
        
        self.MVNameLabel = [[UILabel alloc] init];
        [self.myView addSubview:self.MVNameLabel];
        [_MVNameLabel release];
        
        self.singerLabel = [[UILabel alloc] init];
        [self.myView addSubview:self.singerLabel];
        [_singerLabel release];
        
        self.picImageView = [[UIImageView alloc] init];
        [self.myView addSubview:self.picImageView];
        [_picImageView release];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.myView.frame = CGRectMake(10, 5, WIDTH - 20, HEIGHT - 10);
    self.MVNameLabel.frame = CGRectMake(130, 15, 200, 30);
    self.singerLabel.frame = CGRectMake(130, 55, 200, 30);
    self.picImageView.frame = CGRectMake(0, 0, 100, 100);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
